#!/bin/sh
runnumber=$(ps axu|grep daocang-httpd-worker|grep -v grep|wc -l)
if [ $runnumber -eq 0 ]
then
phpsrc=$(which php)
${phpsrc} /home/wwwroot/daocang/trensy server:restart -d
fi